package com.breakfast.fun.ui.other.city;

import com.breakfast.fun.data.entity.home.City;
import com.breakfast.fun.util.Api;
import com.breakfast.fun.util.RxSchedulers;

import java.util.Map;

import retrofit2.http.FieldMap;
import rx.Observable;

/**
 * Created by Administrator on 2016/8/22.
 */
public class CityModel implements CityContract.Model {
    @Override
    public Observable<City> getCityModel(@FieldMap Map<String, String> map) {
        return Api.getInstance().service
                .getCityModel(map)
                .compose(RxSchedulers.io_main());
    }
}
